package com.order.flowserver.implementation;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.shitou.server.data.command.DbQueryResult;

@RestController
public class HomeController implements DisposableBean{
	private Logger logger = LoggerFactory.getLogger(HomeController.class);

	@RequestMapping(path = "/", method = RequestMethod.GET)
	public DbQueryResult<String> index() {
		logger.info("欢迎访问首页");
		return new DbQueryResult<String>();
	}

	@Override
	public void destroy() throws Exception {
		logger.info("HomeController destroy.............");
	}
	
	
	
}